//
//  ViewController.m
//  TabView
//
//  Created by iD Student on 6/27/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController
@synthesize addName;
@synthesize tableView;

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
//    table=[[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
    [tableView setDataSource:self];
    [tableView setDelegate:self];
    tableData=[[NSMutableArray alloc] initWithObjects:@"Anastasia",@"Briana",@"Cynthia",@"Diane",@"Eleana",@"Fiona",@"Georgiana",@"Helen",@"Irene",@"Jacqueline",@"Lena",@"Molly",@"Natalia",@"Ophelia",@"Patricia",@"Q",@"Rachel",@"Sabrina",@"Taylor",@"U",@"Vivian",@"W",@"X",@"Y",@"Z",nil];
}

- (void)viewDidUnload
{
    [self setTableView:nil];
    [self setAddName:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
    } else {
        return YES;
    }
}
-(int)numberOfSectionsInTableView:(UITableView *)tableView{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return tableData.count;
}
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell=[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
    cell.textLabel.text=[tableData objectAtIndex:indexPath.row];
    return cell;
}
- (IBAction)add:(id)sender {
}
@end
